package cn.wolfcode.crm.query;

import com.alibaba.druid.util.StringUtils;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class EmployeeQueryObject extends QueryObject {
    //排序
    private String sort; //排序的列
    private String order; //排序的方式

    public String getSort(){
        return StringUtils.isEmpty(sort)? null : sort;
    }
    public String getOrder(){
        return StringUtils.isEmpty(order)? "" : order; //order没值时需要为""
    }

    private String keyword;

    public String getKeyword(){
        if (StringUtils.isEmpty(keyword)){
            return null;
        }
        return  keyword;
    }
}
